Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow adding transports before defaults #272

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

benzolium
Copy link
Contributor

As I mentioned in #80 (comment), one could not override default transports now.

With this small change, one could set up own transport, because first transport get's selected:
https://github.com/99designs/gqlgen/blob/fb67b709af4f0c5ba6eff8222c728b076a6eb09b/graphql/handler/server.go#L98

It will allow users, for example, to introduce batching with a bramble plugin, as I also mentioned in comment: #80 (comment).

@benzolium benzolium requested a review from a team as a code owner June 13, 2024 19:31
Copy link
Member

@pkqk pkqk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I couldn't find any plugins that depend on the order for that hook.

@pkqk pkqk changed the title allow users to override transport Allow adding transports before defaults Jul 16, 2024
@pkqk pkqk merged commit f24f90e into movio:main Jul 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants